package com.yunhe.abnormal.client;

import com.yunhe.abnormal.client.fallback.MaintenanceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 量测历史数据Feign客户端
 * @author liuronglei
 */
@FeignClient(value = "ems-maintenance", fallbackFactory = MaintenanceFallbackFactory.class)
public interface MaintenanceClient {
    @DeleteMapping("event/{eventId}")
    void deleteByEventId(@PathVariable("eventId") Long eventId);
}
